package com.redwine.app.net.responses;

import java.util.List;

/**
 * 发布货源获取酒种类
 * 作者：gassion on 17/8/12 11:51
 * 最可怕的敌人，就是没有坚强的信念。
 */

public class WineCategoryDataResponse extends BaseResponse {

    /**
     * data : {"category":[{"id":"1","name":"葡萄酒"},{"id":"2","name":"洋酒"},{"id":"3","name":"红酒"},{"id":"4","name":"白酒"},{"id":"5","name":"酱香型酒"},{"id":"6","name":"玫瑰酒"},{"id":"7","name":"酿酒"}]}
     */

    private DataEntity data;

    public DataEntity getData() {
        return data;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public static class DataEntity {
        private List<CategoryEntity> category;

        public List<CategoryEntity> getCategory() {
            return category;
        }

        public void setCategory(List<CategoryEntity> category) {
            this.category = category;
        }

        public static class CategoryEntity {
            /**
             * id : 1
             * name : 葡萄酒
             */

            private String id;
            private String name;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }
    }
}
